<template>
  <div>
    <PublicTable
      ref="popovertable"
      :loading="popovertableloading"
      :table-data="popovertableData"
      :columns="popovercolumns"
      :options="popoveroptions"
    />
    <!-- {{ popovertableData }} -->
  </div>
</template>

<script>
const popovercolumns = [
  {
    label: "状态",
    prop: "ACTTYPENAME",
    minwidth: "80",
  },
  {
    label: "经办人",
    prop: "CREATEUSER",
    minwidth: "80",
  },
  {
    label: "经办时间",
    prop: "CREATETIME",
    minwidth: "120",
    formatter(row, column) {
      return row.CREATETIME.substring(0,16) || row.CREATETIME
    }
  },
  {
    label: "意见",
    prop: "COMMENTS",
  },
];
const popoveroptions = {
  bind: {
    height: "200px",
  }
}
export default {
  name: "ProcessTable",
  props: {
    title: {
      type: String,
      default: "",
    },
    shadow: {
      type: String,
      default: "always",
    },
    headstyle: {
      type: Object,
      default() {
        return {}
      }
    },
    popovertableData: {
      type: Array,
      default() {
        return []
      }
    },
  },
  data() {
    return {
      popovercolumns,
      popoveroptions,
      popovertableloading: false,
      // popovertableData: [],
      // tabledata: [],
    };
  },
  methods: {
    async querystatus({ logtype,pid, }) {
      this.popovertableloading = true;
      const data = await this.$api.utils.getBusinessLog({ logtype,pid });
      // console.log(data,);
      // this.$set(this,"tabledata",data)
      // this.popovertableData = data;
      // console.log(this.popovertableData,);
      this.popovertableloading = false;
      return data
    }
  }
};
</script>

<style lang="scss">

</style>
